﻿<!DOCTYPE html>
<html>
<head>
    <title>member-group</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link  href="<?php echo base_url();?>css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>

 <div id="contentright">
        <div id="search">
          <div id="searchblank">
            <div id="searchinput">
             Welcome, admin
            </div>
          
            <div id="advancesearch"><a href="<?php echo site_url('login/logout');?>" class="advancesearch">Logout</a></div>
          </div>
        </div>
        </div>
    <div id="main">
       <?php 
        $menu['nowmenu'] = 'members';
        $this->load->view('common/divheader',$menu);
        ?>
        <div id="middle">
        <div id="breadcrumbs"><a href="dashboard.html">Dashboard</a>/ สมาชิก</div>
            <?php $this->load->view('users/divleftmenu');?>
            <div id="center-column">
                <div class="top-bar">
                    
                    <h1>Members group</h1>
                    
              </div>
                <div class="select-bar">
                	<form method="post">
                    <p>
                      <label>
                        <input type="text" name="searchstr" />
                      </label>
                      <label>
                        <input type="submit" name="Submit" value="Search" />
                      </label>
                    </p>
                    </form>
              </div>
                <div class="table">
                    <table class="listing" cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th>ชื่อกลุ่มสมาชิก</th>
                            <th>รหัสกลุ่ม</th>
                            <th>หัวหน้ากลุ่ม</th>
                            <th>ปริมาณส่งวัตถุดิบ</th>
                            <th>จำนวนเงินทั้งหมด</th>
                            <th>โบนัสที่ได้รับ</th>
                            <th>จ่ายไปแล้ว</th>
                            <th>คงเหลือ</th>
                        </tr>
                     </thead>
                     <tbody>
            <?php 
    			foreach ($groupmember as $row):
    		?>
    				<tr>
    					<td><a href="<?php echo site_url('users/groupdetail/'.$row['villageid']);?>"><?php echo $row['villagename'];?> </a> </td>
    					<td><?php echo $row['villageid'];?> </td>
						<td><?php echo $row['headname'];?> </td>
						<td><?php echo $row['sum_netwg'];?> </td>
						<td><?php echo $row['sum_netbuy'];?> </td>
						<td><?php echo $row['sum_grouppromo'];?> </td>
						<td><?php echo $row['sum_paid'];?> </td>
						<td><?php echo $row['balance'];?> </td>
    				</tr>
    		<?php 	
    			endforeach;
    		?>
                     
                     </tbody>
                        
                    </table>
                    <div class="select">
                        <strong>Other Pages: </strong>
                        <select>
                            <option>1</option>
                      </select>
                  </div>
              </div>
            </div>
            <div id="right-column">
                <strong class="h">Quick Link</strong>
                <div class="box">This is your admin home page. It will give you access to all things within the back end system that you will need to facilitate a smooth operation.</div>
            </div>
        </div>
        <div id="footer"><p>ALL RIGHTS RESERVED 2012 <a href="http://www.ubonbioethanol.com">UBON BIO ETHANOL CO., LTD.</a><br>Developed by DASH CO., LTD (2011-2012).  </p></div>
    </div>
</body>
</html>